﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Masterpage/PagesMian.master"
    AutoEventWireup="true" CodeFile="LinkManager.aspx.cs" Inherits="Admin_FriendLink_LinkManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        //删除
        function IsDelete(a) {
            if (confirm("确定要执行删除操作, 删除后不能回滚。")) {
                Fjmr.WebUI.Member.Admin.Link.Link.IsDelete(a, function success() { window.location.href = "GuestManager.aspx"; }, function fail() { alert("删除失败！"); });
            }
        }
        function OnSuccessIsDelete() {
            alert("操作成功！");
        }
        //批量删除
        function isDeletes() {
            Fjmr.WebUI.Member.Admin.Link.Link.IsDeletes(CheckValue());
        } 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceTitle" runat="server">
    友情链接
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <table class="taStyle" cellspacing="1" cellpadding="1" border="0" style="width: 100%;
        text-align: center;">
        <tr class="head">
            <th scope="col">
                选择
            </th>
            <th scope="col">
                首页推荐
            </th>
            <th scope="col">
                审核
            </th>
            <th scope="col" style="width: 60%">
                网站名称
            </th>
            <th scope="col">
                LOGO类型
            </th>
            <th scope="col">
                状态
            </th>
            <th scope="col">
                操作
            </th>
        </tr>
        <%foreach (var Link in LinkList)
          {%>
        <tr class="Rlist">
            <td style="text-align: center; width: 50px;">
                <input type="checkbox" value="*" name="ids" />
            </td>
            <td style="text-align: center">
                √
            </td>
            <td style="text-align: center">
                √
            </td>
            <td>
                <%=Link.FL_WebName%>
            </td>
            <td style="text-align: center;">
                <%=GType(Link.FL_Type)%>
            </td>
            <td style="text-align: center;">
                <%=State(Link.FL_IsAuditing)%>
            </td>
            <td style="text-align: center;">
                【<a href="">查看</a>】【<a href="javascript:IsDelete('<%=Link.FL_Id%>')">删除</a>】
            </td>
        </tr>
        <%}%>
    </table>
    <table width="100%" border="0" class="noprint">
        <tr>
            <td>
                <div id="pager" class="pagination" style="background: #FFFFFF">
                </div>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" class="noprint">
        <tr>
            <td align="center">
                <input id="chkall" onclick="javascript:check('ids',2);" style="border: 0" type="checkbox" />全选/取消
                <asp:Button ID="Button2" runat="server" Text="删除所选信息" Width="124px" />
            </td>
        </tr>
    </table>
</asp:Content>
